package lxzh.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class TestService {

    private static final String REST_URL_PREFIX = "http://SPRING-CLOUD-RIBBON";

    
	@Autowired
	RestTemplate rsRestTemplate;
	
	
	public String testService(String name) {
		return rsRestTemplate.getForObject(REST_URL_PREFIX+"/info?name="+name, String.class );
	}
}
